adding automatic speed regulation