Use reference to pointer instead of pointer to pointer