Removed stupid pollingthread which wasn't needed