Most of the changes were done in fortran, but essentially, now I'm sending string lengths with strings, and ints by references (when calling fortran functions)