Fixing dynamic nature of script