Added a memory repository for messages