Added loading and setting the inventory