Added language detector dynamic loading and refactored code.