Add stuff to history file