Heart beat is working and trying to create a thread to check clients
availability