how to run a gold mining plant