Added epsilon convergence check