Updated multiroot to use an iterative method.