Renamed API methods to avoid overloading.

This is in preparation for a JS version of the API.