Merge of Mines code