Added ability to register callbacks for class instantiation.