Generate ping and add global commands