Improve MotorSelectionDialog box by having more sophisticated filtering.