Code for my pmd2 tools.