added option to stop processing after condition is met
changed stop system after state from "continue" to "finalize"