Add self health check and synchronized.

Add self health check and synchronized.