Fixes in Integral calculation.