Implemented new methods for registering events