Complete "Revert" function.