Small changes to cubature functions.