Updated script and created convergence method