Added GetAllMessages functionality