Add nodes method