Modify send function