Better parsing for sequences. One issue remains where we greedily eat commands. Not sure what the solution is.