Run before script.