Forked to use lodash instead of underscore