Improve input, begin file reading