Construct serviceUrl via callback function. Fixes #66.