Set up support for a callback to control the computation in the library interface. The interface is there now, though it doesn't do anything yet.