I need help finding the name of this movie!

The movie is about a guy that's neeing picked on at school, and stuff like that.
He makes friends with some other social misfit kids, and together they plan a school shooting, but he ends up stopping it.

Yea, I'm not good at explaining things, but that's what I remember
Either Bang Bang You're Dead!, or Elephant.

I can't remember which though.

EDIT: Ah, sonofabitch, beaten to it. You should watch Elephant though, it's a great film.
school shootings are for pussies!

What ever happened to just kicking someones ass! so he can walk around the school for ever in shame.

at least thats how i did things...