Later we can make this use a `result` parameter.  No need to increase the scope here.