Iterative stuff in solver class.