Add query timeout and configuration.