Whoops I hadn't spotted that.  
It was used in the original caller before I split this off, but only for the error handling which is now contained here.
Will fix...