Change the range helper to include both ends