Use the new instance-based toolbox API.

Resolves issue #3.