Fixing a bug in the previous commit. Using the condition the wrong way around. Refs #18