Updated to use "default" if undefined and forbiddenTargets.