-- Added element delete functionality.