diff --git a/lib/node-libnmap.js b/lib/node-libnmap.js
index <HASH>..<HASH> 100644
--- a/lib/node-libnmap.js
+++ b/lib/node-libnmap.js
@@ -15,7 +15,7 @@ var version = 'v0.2.0'
   , ipv6 = require('ip-address').v6
   , netmask = require('netmask').Netmask
   , proc = require('child_process').exec
-  , nmap = function(options, fn) {
+  , nmap = function(options, abc) {
 
   'use strict';
 
@@ -180,7 +180,7 @@ var version = 'v0.2.0'
      */
     flatten: function (report) {
       return this.recursive(report.nmaprun);
-    },
+    }
   };
 
   /**
@@ -220,7 +220,7 @@ var version = 'v0.2.0'
         , reports = [];
 
       if (opts.range > 0)
-        return fn(new Error("Range of hosts could not be created"));
+        return new Error("Range of hosts could not be created");
 
       Object.keys(opts.range).forEach(function(block) {
 
@@ -565,9 +565,9 @@ var version = 'v0.2.0'
     });
 
     tools.worker(opts, function scan(err, data) {
-      if (err) cb(err);
+      if (err) return cb(err);
 
-      cb(null, data);
+      return cb(null, data);
     });
   };
 };
Removed undefined fn()