Adding dealloc logging.