Added a 'ping' method