Replacing underscore with lodash and removing the dependency on Node's util module.