Initial version of script.
Got script working