Added a check for device handshake packets