Protecting the API

Thanks @zachdaniel !