Added more fine control of saturation function definition.