Purge old API.

Closes #235.