Add ability to filter on size too

This filters on size but also shows arbitrary stacking of rules.
Also fixes a bug where I was using a global variable inside the separate
function.