Adds preempt code