diff --git a/index.js b/index.js
index <HASH>..<HASH> 100644
--- a/index.js
+++ b/index.js
@@ -1,10 +1,7 @@
 module.exports = function (inputArray, singleCb, finalCb) {
-var len = inputArray.length;
-var lenTarget = 0;
-
-for (i = 0; i < len; i++) {
+for (let i = 0, len = inputArray.length, lenTarget = 0; i < len; i++) {
 	(function() {
-		var ii = i;
+		let ii = i;
 		process.nextTick( function(){
 			singleCb(inputArray[ii]);
 			lenTarget++;
@@ -15,4 +12,4 @@ for (i = 0; i < len; i++) {
 		});
 	})();
 }
-}
\ No newline at end of file
+}
Update variable handling

Moved all variables into the for loop declaration. Changed to let, instead of var.