Make it work a bit, but algo is incorrect