This change will affect the behaviour, since it's no longer resetting `nl` and calculating `l` at the start of each loop.