Starting changing all variables to pointers.