Parameterize ping and ping-restart