Adding filtering capability.

Signed-off-by: Ronald Huereca <ronalfy@gmail.com>