Added a visual, main loop handler