Update sub doc function included. Lodash removed