Updated invoker to use a set of written ids