Implemented API for accessing user messages.