Initialize environment default values in a function