ROT-n rotation script.