Main code now looks for and uses the C-optimized code