Implements response to ping