New API

I forgot to merge into master before submitting the pull request and can't figure out how to delete a pull request.