Add get_offsets method