Added traffic jam control logic