Add support for parameter passed by reference