Added diffE and integral