Merged into master for version 3.2