Staying in a subroutine

loop() is a subroutine, that is continuously called by main(). Everything of interest can be done in loop(), so there is no obvious reason to shove the problem one level down.