Renamed 'range' function to '_range' in order to make it private.