Added a ping API, started working on distributed checking