Added STAThread attribute