computer controlled gantries selected the ore for certain holds , based on the calculations made at the grading plant , by dr flavins software ; this ensured the different gradations of ore were delivered to appropriate areas of the refining facilities .