Filter records

Adds filtering capability