Refactoring, added automatic language detection by browser header