Changed locale as last argument in functions.