Added the behaviors for inserting and deleting.