Made performance and coding style tweaks as per David Mudrak's suggestions
Added passthrough=1 paramater to allow people to show copy and paste'able filter strings that don't parse in documentation