Add early termination