[[ ScriptOnlyStack ]] Refactored into action method with support for naming if specified.