Finished between and within functions for grabbing message history. Cleaned up the File