Code now works with 1 task and idle task, but appears to interrupt task 2 just as it starts to run