Implements #349
Merge pull request #926 from emmanuel-keller/1.5

Implements #349