Added history saving and loading and which and touch