Adding also maximum value