First closing, second opening. Changed sigma algorithm.