Only compile the script if necessary during initialisation of Genetic Algorithm.