Add filter to Extract function.