Use temporary variable to improve readability in lmcurve_evaluate