Added a callback framework.