Distinguishing between node creation from pop actions and tokens