modified to accept traces from multiple sensors