Added some functions to test if sigma converges.