Code changed to enforce constant speed on all platforms