File rollback functionality added.