• Thanks, that works nicely especially outputing the log to SQL