Mining grade control software: Understanding your material