Improved quadrature; debugging compilation.