Update new algorithm