Reads generated files correctly