Thread comm_control added
smal changes