Initial version of the script and template