how does a gold processing plant work