Initial version of template script