Add history support, persisted in to a local file