Adding realtime polling to the front-end.