Fixed assignment (pass by reference now works)