Added async flag in changeMotorSpeed function