Loop inside the routine

The problem is solved. See End loop after 5 minutes - Builder - PsychoPy