A not to pretty, but functional parser is in.