Tweak the algorithm