First version of script. Be gentel.