Using GLib.timeout_add instead of the deprecated GObject.timeout_add