Automatically adjust to length of list