Use only variables that actually exist for the output name