Updated sample node api