Enum purpose of function