Include for missing 'max' definition