Updated sweep range from 1..254 to 0..255