Added runPermParserTill & tests