Changed the code to use pulls everywhere so that we are dealing only with maps. However, now we are not dealing with links properly, we are creating new versions of entities which is incorrect.