Added possibility to setup filter programatically