Adjust to insert function