Added special case for filtering by attachment info.