Add logging.
Improve return val of pfilter.
Correct method name.