Removed thread. Polling is not functioning but the rest seems to work.