Added a bit of code to insert().