Implementing removeListener