Edits to make this thing not-blocking. Browserify will hang when the next() callback is not called