Moving script to a file