Changed T0 to T1 for new tool selector code.