n can be nil.