Added half-time recognition logic