Pass by reference optimization.