Added support for extended attributes
Changed function type of filter