Added a listener class.