Moving the periodic updates to the websockets.