Pass more function parameters by const reference