A lot of modifications and get locale