Rudimentary inv parsing.