Removed deprecated pass-by-reference code