Clean up results and pass arbitrary keys in input.