Added const references for arguments