Abolish the DoMainLoop function