Edit if loop start up script