Seperate In and Out Packets to remove code redundancy