Changed to use lodash.