Add profile algorithm.