Finished most stuff for lex