Added ability to pass arguments by reference