Algorithm is done