Simplify language detection
Self update: faster way to get end of file section