Adjusting for general algorithm.