Moved Functionality dealing with message history to a new file called HistoryUtilities on a new branch