Rework to use readFile (async)