More debug statements in writer, when writing