Bacillus Cereus

How did Bacillus Cereus induce diarrhea with its enterotoxin and vomiting by producing peptide toxin?