- Moved integrate function out of the view class.