Use obj to detect convergence
Use w