driver code in place with callbacks.