Is the rest of this file repeated in all scripts? Can it be externalized and put in one file and then called from each script?