Added a method for exit conditions rather than
defining them per condition.