Made constructBytePackage method static