First version of script.