Saint algorithm