Moving list-length code from one place in the file to another