Added speed smooth algo.