Added getLang function