Added [STAThread] as it is required for Windows