added function getTrafficStats that catches more data