Set up method to send packets.