Converitn this over to a node module