diff --git a/osfooler_ng/osfooler_ng.py b/osfooler_ng/osfooler_ng.py
index a244221..bafdd33 100644
--- a/osfooler_ng/osfooler_ng.py
+++ b/osfooler_ng/osfooler_ng.py
@@ -774,15 +774,15 @@ def cb_nmap(i, payload):
         payload.set_verdict(nfqueue.NF_ACCEPT)
     return 0
 
-def init(queue):
+def init(mode, nfq_num):
   q = nfqueue.queue()
-  if (queue == 0):
+  if (mode == 0):
     q.set_callback(cb_nmap)
     print "      [->] %s: nmap packet processor" % multiprocessing.current_process().name
-  if (queue == 1 and (opts.osgenre or (opts.details_p0f and opts.osgenre))):
+  if (mode == 1 and (opts.osgenre or (opts.details_p0f and opts.osgenre))):
     q.set_callback(cb_p0f)
     print "      [->] %s: p0f packet processor" % multiprocessing.current_process().name
-  q.fast_open(queue, AF_INET)
+  q.fast_open(nfq_num, AF_INET)
   try:
     q.try_run()
   except KeyboardInterrupt,err:
@@ -836,6 +836,8 @@ def main():
                     action='store', dest='details_p0f', help="choose p0f v2 Details")
   parser.add_option('-i', '--interface', action='store',
                     dest='interface', help="choose network interface (eth0)")
+  parser.add_option('-q', '--nfq_num', action='store',
+                    dest='nfq_num', help="nfqueue number")
   parser.add_option('-s', '--search', action='store',
                     dest='search', help="search OS in nmap/p0f v2 db")
   parser.add_option('-u', '--updatedb', action='store_true',
@@ -935,16 +937,16 @@ def main():
   procs = []
   # nmap mode
   if opts.os:
-    os.system("iptables -A INPUT -j NFQUEUE --queue-num 0")
-    proc = Process(target=init,args=(0,))
+    os.system("iptables -A INPUT -j NFQUEUE --queue-num {}".format(opts.nfq_num if opts.nfq_num else 0))
+    proc = Process(target=init,args=(0, opts.nfq_num if opts.nfq_num else 0,))
     procs.append(proc)
     proc.start()
   # p0f mode
   if (opts.osgenre):
     global home_ip
     home_ip = get_ip_address(interface)
-    os.system("iptables -A OUTPUT -p TCP --syn -j NFQUEUE --queue-num 1")
-    proc = Process(target=init,args=(1,))
+    os.system("iptables -A OUTPUT -p TCP --syn -j NFQUEUE --queue-num {}".format(opts.nfq_num if opts.nfq_num else 1)
+    proc = Process(target=init,args=(1, opts.nfq_num if opts.nfq_num else 1,))
     procs.append(proc)
     proc.start()
   # Detect mode
@@ -962,4 +964,4 @@ def main():
       #  p.terminate()
 
 if __name__ == "__main__":
-  main()
\ No newline at end of file
+  main()
