Changed the ofAddListener to the constructor.