Added support for ping.
Handling undefined for info values.
improved update code.
improved update code.