Added logging to receiver
Changed run method of receiver