Switched to using lodash, since it is supposedly faster, and provides deep cloning