Added ping to test connection