Renamed msg to cmd