Finish integrating mercury