Adding some checks before packet is forwarded to check for anomalies. Will remove after a round of debug.