Update InsertPaper function