Process Control Through pH in Leaching