Moved lexer procedures