Removed calls to deprecated node API