Fixed Delete function. Need to fix update.