Changed my parameters to pointers