.

After inserting nodes in several loops the following final tasks are performed: