First iteration of script