Added an API call for the extract method