Change reference search due to problems with runInit() function causing an unpredictable change in direction