Add data and packet type check.