Distinct structural elements dictate the specificity of the type III pentaketide synthase from Neurospora crassa.