Simins algorithm klar.