Let the generate value be set to TRUE or FALSE for batch purposes.

This could just be a bool to the function and hide the stringiness.