Really fixed the thread number issue using pthread IDs. Added client funcitonality to pinging every halfsecond.