Replaced main loop with minimal setTimeout loop
Main loop runner cleanup