Added event loop, draft setting up everything