Algorithms refinement