Updated language file loading code