Added minerals and metals, but working on arrays