Modified interface to handle nodeIds.