Moved analyzeFile() to BaseFile where a much better place is (and duplicate