Add simple history mechanism.