Fix condition to execute filter
Add setOption method to change default configuration