Add delegate method

Fixes #108.