Modified document o include the first 3 variables of the script