Fixed lexer issues and started encoder.