Added hardware select code to mine script.