Beginnings of implementing API