Adds Top-level script environment conditional