Improved intergation with CG