Added some stuff and changed the receiver thread to not have a run() parameter.