Adding support for file extension filtering