Added comment and fixed pingtest bug