Automated language detection added