Support filtering by thread