Move history to its own file