Algorithm complet efor now