Probably better to use `max`, since it handles NaN in the standard way.