Add clamp and scale_exp functions