Initial commit of script written in 2008