A prototype for integration function.
A little refactoring to avoid naming collisions.