Add mean calcuation and periodic temp measurements.