Added support for taking filter name as input parameter.