Created boolean rotflag to prep for Xprod