General implementation work.
Fixed a problem in the iterative method call.