Check before script