More work on C API for calling from Meteor