Enhanced the learning command mode