Added writing to InfluxDB.