Interpolating function now passed recursively

Fixes #25