Add results to environment parameters RESULT_M, RESULT_B