Almost finished implementing ranges.