Fixed issue with reading files. Moved block of code by accident.