Renamed result.names to resultName