Chnaged poll time to 10 seconds. Got graph working, but still the code it dirty.