Added delete and add functions