Fix missing reference to client.
Initialize outputs on addresses if needed.