Your algorithm is no good here...