Introduced periodic_shift for cutting wire rotation data neatly.