Finalising the scripts