Initial commit of Terry's script