Made script replacements global