Use an unsigned long offset instead of int.