MainEvent Functionality ADJUSTED