ScriptAction.checkNameGeneration Method

Since generating names is expensive, it should be done only on-demand.