Algorithm upgrade