Removed update flag and added separate array of objects to be removed for UpdateTree