Improves add nodes logic

- Fixes issue where NUMBER in arguments for add is not read.
- Fixes masters not moved during execution of refresh on master.