Made changes related to MAE calculation