Added in automatic flushing before scaling.