Add yaml hook.