Deleting elements now works