Moved code into FileAnalyzer.