Add extractAll method