Restore before script