added code from DSpiewak for Sequence Parser (AND)