Made number of items automatic.