Added some checks for packet processing