Updated deprecated pass-by-reference call.