What is `max` in this context and how does it related to`fMinimumLength`? I can see what the different cases are doing, but I'm unsure why