Parser now works without stack overflow