Working port of AtomicBondNode.js