Mass update for optimization