Little improvement to add result with the API