Refresh changed from idle_add to timeout_add to prevent lags in some cases on some systems.