A bit closer final algorithm