Language handling

Added language handling.