Added the code for inserting/deleting sections