Added integrals, need fix contour