Would be useful to log the length (and similarly below).