Restructured extraction according to requirement.