Renaming memory attributes and inventory loop.