Save history, prepare .workspace