Removed unused imports
Try threading this to avoid blocking the reactor