Added ping timeout value and setInterval to initPing