Functions for the unit type.