Actually, the whole algorithm doesn't make much sense after this...