Add language strings for error messages.
Optimize function arguments.