Optimizing performance using 'ping'