Added MainLoop header