Addition of original file by NS
first commit of changes made to original script