Add datastream statistics computation