Replace hardcoded ping target with global variable