First version of API sort of working. Sort of.