Listener

Refactored the code as per the feedback. Still have to work on it.