Allow hooking into object creation.