Added ping calculation and colors for ping value