Before method was created to run mercury on pages