Implemented custom named event registration.