Add param for pruning stops and fix parser bug