Added deleting states functionality.