Fix function signature: pass argument by const reference