Tested stopping optimization.