Changed length to size, because lists aren't arrays.