Modications to add the new API call