added sleep in CmdH loop