Use const reference instead of pass by value.