Added some rollback functions to delete and update classes.