Preparing to port to Node.js