Fleshing out flushing logic.