Added stats filtering

Not sure if this is a patch that you want, but I took a stab at it because I wanted to see how easy/difficult it would be to implement.  The decision logic is kinda crappy, but it's almost lunchtime and brain is failing.