First attempt at preventing wraparound.