Integrated d2Star to the script
Change call to Popen