Controlling speed variation with smartphone.