Return added. maxLengthInput should return affected nodes
Merge branch 'bugs'