Update before script