Working on receiving messages from the server