Added code for del and add functions