Changes to the API. See the README for new usage.