Function for inserting LOD