Changed the clr_cmd_rdy logic