Fine tune algorithm