Added initial revision of script