Initial commit of threading script