I just realized there is a bug here. Can you add `result` as the result parameter here? We probably never noticed this because we always use the return value since it could be `undefined`.