CommClient moved to thread and mutexes were added