Using for loop for items.
DRY Improvement in items loop.
Removing orphan variables.