Fixed some sending/recieving thread stuff