Modified Dam thread to send/recieve msgs