Check and Delete functions