Update to stream, using promises.