FINISHED TRANSPOSITION CODE.