Update Lee algorithm