Use an array of return fields rather than a function.