Refactoring to have a single routine for writing