Added command to set the repeat mode