Corrected t1 and t2 functionality.
Trying to fix the W scheduler.
Adding the mode input to state dump.