Added GenericAlgorithm.