Corrected final variable and added script header