Does this need an if scanTimerInterval != 0 check too?