Added untested old version of script