Improve updating of sensor_metadata for calcs.