Added switch to toggle on/off the comet poll