Init packet before sending