Change from readFile to stream