Moved forwarding of packet to it's own function