Updated Command constructor.