Added check for relay counter.