Updated the function of languages.