Use pointers instead of ints.