Added MessageListener class