Removing the util module dependency and replacing it with lodash calls.