get_messages method implemented. The messages can be retrieved by user immediately or as they arrive.