Move scripts to a separate file