Use range instead of upto()