Ping funcionality added.

It was NOT tested yet.