Initial version of message retrieval.