Refactor in order to read file ones.