Add writer to write invocation info.