Added rudimentary history support.