Extract method for finding multiple ids