Default algorithm