Adding method to get all messages