Trying to rework the program. Implementing the integratior. Not working.