Added locale support.