Dor - better break function & better loiter mode usage