Added support for cookies and 2 additional filter functions