Found a problem concerning the pp-integral: sqrt(p+q) in result yields nan for negative values.