diff --git a/sweebot.py b/sweebot.py
index 782f380..234eb6a 100644
--- a/sweebot.py
+++ b/sweebot.py
@@ -24,6 +24,7 @@ AImodel = environ["AImodel"] if "AImodel" in environ else "llama2"
 run = 0
 block = 0
 parsed = 0
+global lastquery
 lastquery = "None yet."
 # Dashboard thread
 from flask import Flask, send_file, abort as abrt, redirect as redir