Added functionality to capture all slow queries in a given time period