Added pre processing of script data