Add algorithm to API