New int_offset() function