Dental

What is the function of a template during procedure of tooth extraction and insertion of immediate denture?