Added debug output to show packet information when being sent