Added details for minerals and fixed use of the active flag