Uncomments working getDataRanges function