Adding debug statements to send packets