Pass debug option to each instance before saving
Refactoring