Rename type to algo.