Add ping code for testing purposes