Added retrieval of a message object and printed out text message