Switching from endless loop to app idling, Fixing first run check

Thanks a lot for your help, @moritzz!