REstart function is called before LOOP for easier testing