Replaced owned pointers with borrowed.