Added MasterMiner function.