Added query_offset method