Implemented autoDelete.