Changed adsparse according to Chai's request