Initialize mercury.