Changed idle_add to timeout_add_seconds (with a two seconds timeout)
(hoping this will be less resource intensive)