What's going on with `cmd` here, doesn't look to have been initialized -- did you mean to assign the value here?