Refactoring

Refactors flag to control saving revision records