Made packet number and data field direct inputs. More flexible