Improved ping synching to use coroutines.