Pass variables by reference in a proper fashion.