Set Timeout=300 for main query