Add history management