Introduce revert function