Updated old variable references in flush code. Refs #62