Started work on API. Not really sure what I'm doing, though.