addToOffset is now using arrays instead of variable argument list.