Added functionality to work with output parameters