Removed redundant code from writer.py and generated the new model.