Added array doubling for input packet
Fixed packaging