Update W/L algorithm.