Making better history files