Added new code for mineral to track