[TASK] Return the new node in the command handler
[TASK] Add some comments