First version of script