Adds revert command