Transposition detector rewrite part 2/2.