Update algorithm.
Update API request format.