Basic PDLog functionality. Need to fix up interface, and add more variables.