Added core data and changed API call structure.