Hacked my way to pass by reference.