I have it setup like this:
void setup() {
somecode }
void loop() {
void somefunction() {
return to loop }