Added config + fixed hasPacket() returning true when false