Fixes #12, and added support for PMD 5.2.2.