Bug fix and implement logging in Pinger