Implemented rotation of TDIs