New ex_int_offset() function