Added OO-ified PiL implementation.