Simplify send and recv to globals.