Updated for Tools 8.52.  Removed dependency on temp table.  Probably
broke backwards compatibility.