Finalized language detection stuff