Yes, you're right. Actually getNode doesn't need the mode parameter at all.