Generate unset method