Scripts/Nexus: rewritten instance script