Built rollback function