Modularize control parsing
Generalize set-led commands