Added EventQueue class