Adding basic logging. ~/ppm directory needs to exist.