Fix semantics of latencyAware
Fix exit condition