Working to add the functionality to receive messages.