Adds debug code to reciever.