Finished writing pointer based functions.