Beginning implimentation of the history function