Implemented the base functionality of the rollback process.