Added getRange() function