Change file reading  implementation.