Implement rollback-fun