Update to adjust transformation of data to make sure the lambda are not too large