Setting the language correctly

Removing some globals