Adds nodes at different positions.