A New Form of Generalized Wall Functions