Rotate function now functional.