Implemented listener registration.