Cleaning up main loop