If the `name` is extracted into a variable I think it should be used as the key in the `algorithm_list` as well and perhaps be renamed to `algorithm_name` to further clarify the intent. If not perhaps you could do with the duplication of that string though?