Fixing Script Die Issue for new device and added accept for second device as well