Got rudimentary API working.