Added discrete integration