Change some value parameters to const references