Allow callback function to be set as lookup in options. Fixes #227