Always check your input ranges