Make var not pass by reference
Provide default for output var