Two teenage boys testified at a terrorism trial in Phoenix about how the defendant befriended them and repeatedly talked about how he wanted to kill non-Muslims and people at an anti-Islam event in Texas.

The 13- and 15-year-old boys testified Wednesday against Abdul Malik Abdul Kareem, who is standing trial on charges that he orchestrated a thwarted attack on a Prophet Muhammad cartoon contest in Garland, Texas, last year. He is one of the first people in the U.S. to stand trial on charges of supporting Islamic State.

The older teen said Kareem told him he was so upset about the cartoon contest that he wanted to shoot up the event. He also wanted to attach a bomb to himself and set it off at a mall.