Algorithm update and design