Add beginnings of API