Add method to receive messages