Changed how to set up mercury