#24 Moved packet create method.