Added extra parameter 'lang' to switch language in the script