Add output parameter support and test.

Agreed.