Enhance script with checking locale