Max instead of addition of weights