Changed the ReceiverThread a bit