Add parent-mode.
Merge pull request #1790 from Fanael/master

Add parent-mode.