Command transformed to enum + better message logging.