Check if PingEclim() exists before calling;Use setlocal