Added preempt logic to Handler.