Adding the listener