Replaced ^ with pow (required for -cc and -oct).