Add support for fetching ranges of records