Started moving the reaction tasks to the scheduler so that it can be multithreaded