Convert to one-time run with persistant cookies instead of long time polling process