Create RotateHelperFunction