Output params should be pointers, not references.