write information every 30 seconds