configurable termination criteria