Set up $len.