Final Step of event loop