Move scripts to external file