Flesh out some new API functions

For @thatch45 to merge.