Add methods to get earliest and latest offsets