Replaced TABLE1D type with FUNCTION