Add history.adapt