Added witnessHook method