Created GetAllMessages method