Correctly invoke wrapper function when executed.

Closes #91.