Sending/Recieving Fix

Global variable changes