Shouldn't this return `max_n`?