Added more language detection heuristics