Shifted the ordering in writer.py