Implemented adding and removing of events