Added accept/revert code.