Add filtering by custom_id to subjects.