Implemented listener.