Converted to new nodeca api