Added history saving across screen buffers and on crash.