Updated Scripts for Long Running Queries