Support for query timeout