Patched scriptdev2