Split scripts into separate files