Proper DI for the algorithm object.