Added list box item generation to a method