Adding logic to timscan for frequency stepping