Added training until convergence.
Using theirs