Integral term is now fully implemented; needs testing.