This could result in `output` being `nil`.