Changed error logging out of the header and into the FileNotFound (improved preformance)